﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.QueceApp
{
    public partial class QueceService
    {

        public string GetWindowCode(string orderNo)
        {
            var shippingOrderDetail = ShippingOrderDetailRepo.GetFirst(t => t.OrderSN == orderNo);
            if (shippingOrderDetail != null)
            {
                var shippingLockCell = ShippingLockCellRepo.GetFirst(t => t.OrderId == shippingOrderDetail.Id);
                return shippingLockCell?.WindowCode;
            }
            return null;

        }


    }
}
